<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Objective-C API Reference for iOS/macOS: &lt;JCMediaDeviceCallback&gt;协议 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Objective-C API Reference for iOS/macOS
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="protocol_j_c_media_device_callback-p-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">&lt;JCMediaDeviceCallback&gt;协议 参考<div class="ingroups"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html">设备模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#import &lt;<a class="el" href="_j_c_media_device_callback_8h_source.html">JCMediaDeviceCallback.h</a>&gt;</code></p>
<div class="dynheader">
类 &lt;JCMediaDeviceCallback&gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="protocol_j_c_media_device_callback-p.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:a2a08a9fc361554aad9a0a49ef2c0a789"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_media_device_callback-p.html#a2a08a9fc361554aad9a0a49ef2c0a789">onCameraUpdate</a></td></tr>
<tr class="separator:a2a08a9fc361554aad9a0a49ef2c0a789"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8df70b612ef571afcdef6f66ba4556c"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_media_device_callback-p.html#aa8df70b612ef571afcdef6f66ba4556c">onAudioOutputTypeChange:</a></td></tr>
<tr class="separator:aa8df70b612ef571afcdef6f66ba4556c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae50d0697924ff8e10d81d7550a6ba416"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_media_device_callback-p.html#ae50d0697924ff8e10d81d7550a6ba416">onRenderReceived:</a></td></tr>
<tr class="separator:ae50d0697924ff8e10d81d7550a6ba416"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc3c990d5e47398c39f7f4463193278b"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_media_device_callback-p.html#acc3c990d5e47398c39f7f4463193278b">onRenderStart:</a></td></tr>
<tr class="separator:acc3c990d5e47398c39f7f4463193278b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0565838a9a2741ecc39ad8db1cb5fda"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_media_device_callback-p.html#ad0565838a9a2741ecc39ad8db1cb5fda">onAudioInerruptAndResume:</a></td></tr>
<tr class="separator:ad0565838a9a2741ecc39ad8db1cb5fda"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><a class="el" href="protocol_j_c_media_device_callback-p.html">JCMediaDeviceCallback</a> 回调 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="ad0565838a9a2741ecc39ad8db1cb5fda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0565838a9a2741ecc39ad8db1cb5fda">&#9670;&nbsp;</a></span>onAudioInerruptAndResume:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onAudioInerruptAndResume: </td>
          <td></td>
          <td class="paramtype">(BOOL)&#160;</td>
          <td class="paramname"><em>interrupt</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>声音中断恢复回调</p>
<p>音频中断或恢复时会收到此回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">interrupt</td><td>中断或恢复<ul>
<li>true 表示中断</li>
<li>false 表示恢复 </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa8df70b612ef571afcdef6f66ba4556c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8df70b612ef571afcdef6f66ba4556c">&#9670;&nbsp;</a></span>onAudioOutputTypeChange:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onAudioOutputTypeChange: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>audioOutputType</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>音频输出类型变化回调</p>
<p>音频输出类型发生变化时会收到此回调，例如从扬声器状态变为耳机状态</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">audioRouteType</td><td>音频输出类型 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2a08a9fc361554aad9a0a49ef2c0a789"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a08a9fc361554aad9a0a49ef2c0a789">&#9670;&nbsp;</a></span>onCameraUpdate</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onCameraUpdate </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>摄像头变化回调</p>
<p>开启、关闭、切换摄像头时会收到此回调 </p>

</div>
</div>
<a id="ae50d0697924ff8e10d81d7550a6ba416"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae50d0697924ff8e10d81d7550a6ba416">&#9670;&nbsp;</a></span>onRenderReceived:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onRenderReceived: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> *)&#160;</td>
          <td class="paramname"><em>canvas</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>收到第一帧数据回调</p>
<p>一对一通话或媒体频道通话时，收到第一帧数据时会收到此回调，在 <a class="el" href="protocol_j_c_media_device_callback-p.html#acc3c990d5e47398c39f7f4463193278b">onRenderStart</a> 之前收到</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">canvas</td><td><a class="el" href="interface_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> 渲染对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="acc3c990d5e47398c39f7f4463193278b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc3c990d5e47398c39f7f4463193278b">&#9670;&nbsp;</a></span>onRenderStart:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onRenderStart: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> *)&#160;</td>
          <td class="paramname"><em>canvas</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>画面开始渲染回调</p>
<p>一对一通话或媒体频道通话时，JCMediaDeviceVideoCanvas 渲染对象开始渲染画面，会收到此回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">canvas</td><td><a class="el" href="interface_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> 渲染对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该协议的文档由以下文件生成:<ul>
<li>JCSDKOC/JCSDKOC/JCMediaDevice/<a class="el" href="_j_c_media_device_callback_8h_source.html">JCMediaDeviceCallback.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
